<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title>外置对象</title>
 <meta charset="UTF-8"/>	
 
   <script type="text/javascript">
  	window.onload = function(){
		
		var m = new Date();
		/*console.log(m.getMilliseconds());显示现在的毫秒数*/
		/*console.log(m.getSeconds());显示现在的秒数*/
		/*console.log(m.getMinutes());显示现在的分钟*/
		/*console.log(m.getHours());现在的多少小时*/
		/*console.log(m.getDate());现在的时间*/
		/*console.log(m.getMonth()+1);多少月份*/
		
		/*
		m.setFullYear(2309,11,16);
		console.log(m.toLocaleString());
		建立时间，并显示
		*/
		
		/*console.log(m.toLocaleString());*/
		/*console.log(m.toLocaleTimeString());*/
		/*console.log(m.toLocaleDateString());时间显示*/
		
		
	/*
	var arr = [2,34,2,46,64,12,34];
	arr.splice(2,2,900,89,'name');
	console.log(arr);
	*/
		 
	/*
	var arr = [32,45,12,98,11,23,43];
	arr.sort();
	console.log(arr);自然排序
	*/	
		
		
   	/*
  	var arr = [3,45,10,20,3,7,9];
	arr.push(1,89,5);
	console.log(arr);从末端插入
	*/
	}
  
 </script>
 </head>
 <body>
  hello world!
 </body>
</html>
